#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

//int main()
//{
//	char s1[] = "asdfghj";
//	char s2[] = "zxcvb";
//	char s3[100];
//
//	int len1 = strlen(s1);
//	int len2 = strlen(s2);
//
//	strcpy(s3, s1);
//	cout << s3 << endl;
//
//	strcat(s3 + len1, s2);
//	cout << s3 << endl;
//	return 0;
//}

class Date
{
public:

	Date(int year = 1949, int month = 10, int day = 1)
	{
		/*_year = 2000;
		_month = 2;
		_day = 2;*/
		cout << "Date(int year = 1949, int month = 10, int day = 1)" << endl;
	}

	Date(const Date& d) 
	{
		/*_year = d._year;
		_month = d._month;
		_day = d._day;*/
		cout << "Date(const Date& d) " << endl;

	}

	~Date()
	{
		cout << "~Date()" << endl;
	}
private:
	int _year = 1970;
	int _month = 1;
	int _day = 1;
};

Date test1(Date d)
{
	Date d1;

	d1 = d;

	return d1;
}

int main()
{
	Date d(1000, 1, 1);
	d = test1(d);

	return 0;
}

